//定义首页模块ts数据类型
export interface ResponseData {
        code:number,
        message:string,
        ok:boolean
}

//代表已有的医院数据的ts类型
export interface Hospital {
    "id":string,
    "createTime":string,
    "updateTime":string,
    "isDeleted":number,
    "param":{
        "hostypeString":string,
        "fullAddress":string
    },
    "hoscode":string,
    "hosname":string,
    "hostype":string,
    "provinceCode":string,
    "cityCode":string,
    "districtCode":string,
    "address":string,
    "logoData":string,
    "intro":string,
    "route":string,
    "status":number,
    "bookingRule":{
        "cycle":number,
        "releaseTime":string,
        "stopTime":string,
        "quitDay":number,
        "quitTime":string,
        "rule":string[]
    }
}


//存储全部已有医院的数据类型
export type Content = Hospital[];

//获取已有医院接口返回的数据ts类型    这是对 api/home/index.ts 的文件中返回接口数据的类型进行限制
export interface HospitalResponseData extends ResponseData {
     data:{
            content:Content,
            "pageable":{
                "sort":{
                    "sorted":boolean,
                    "unsorted":boolean,
                    "empty":boolean
                },
                "pageNumber":number,
                "pageSize":number,
                "offset":number,
                "paged":boolean,
                "unpaged":boolean
            },
            "totalPages":number,
            "totalElements":number,
            "last":boolean,
            "first":boolean,
            "sort":{
                "sorted":boolean,
                "unsorted":boolean,
                "empty":boolean
            },
            "numberOfElements":number,
            "size":number,
            "number":number,
            "empty":boolean
        }
  
   
}


//医院等级的数据类型  这是为返回接口的数据 设置一个泛型 类型
export interface HospitalLevelAndRegion {
    
        "id":number,
        "createTime:":string,
        "updateTime":string,
        "isDeleted":number
        "param":{},
        "parentId":number,
        "name":string,
        "value":string,
        "dictCode":string,
        "hasChildren":boolean
    
}

export type HospitalLevelAndRegionArr = HospitalLevelAndRegion[];


//获取等级或医院地区接口 返回数据 对类型的 限制
export interface HospitalLevelAndRegionResponseData extends ResponseData{
    data: HospitalLevelAndRegionArr
}